package com.cookbook.database.data;

import com.cookbook.database.model.Cookbook;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CookbookMapper {
    List<Cookbook> selectWithOffset(@Param("offset") int offset, @Param("limit") int limit);
    List<Cookbook> search(@Param("search_cookbook") String search_cookbook);
    void insert(@Param("cookbook") Cookbook cookbook);
    //int deleteByPrimaryKey(Integer cookbookid);

    //int insert(Cookbook record);

    //int insertSelective(Cookbook record);

    //Cookbook selectByPrimaryKey(Integer cookbookid);

    //int updateByPrimaryKeySelective(Cookbook record);

    //int updateByPrimaryKey(Cookbook record);
}